package com.shycloud.mido.homework.api.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

/**
 * 作业完成情况
 *
 * @author nianhua.jiang
 * @date 2020/6/28 10:10
 */
@Data
@TableName(value = "mido_homework_complate")
public class MidoHomeworkComplate extends Model<MidoHomeworkComplate> {

	/** 主键ID */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/** 作业ID */
	@TableField(value = "homework_id")
	private Long homeworkId;

	/** 音准 */
	@TableField(value = "intonation")
	private Integer intonation;

	/** 节奏 */
	@TableField(value = "rhythm")
	private Integer rhythm;

	/** 完美 */
	@TableField(value = "perfect")
	private Integer perfect;

	/** 总分 */
	@TableField(value = "total_score")
	private Integer totalScore;

	/** 曲目时长 */
	@TableField(value = "music_length")
	private String musicLength;

	/** 练习长度 */
	@TableField(value = "practive_length")
	private String practiveLength;

	/** 录音资源地址 */
	@TableField(value = "recording_src")
	private String recordingSrc;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 逻辑删除 */
	@TableField(value = "del_flag")
	private Integer delFlag;

	/** 解析标识0未解析1解析完成2解析失败 */
	@TableField(value = "resolve_flag")
	private String resolveFlag;

	/** 作业0未完成1已完成 */
	@TableField(value = "flag")
	private String flag;

	/** 左手音准错误 */
	@TableField(value = "left_hand_intonation")
	private Integer leftHandIntonation;

	/** 左手节奏错误 */
	@TableField(value = "left_hand_rhythm")
	private Integer leftHandRhythm;

	/** 右手音准错误 */
	@TableField(value = "right_hand_intonation")
	private Integer rightHandIntonation;

	/** 右手节奏错误 */
	@TableField(value = "right_hand_rhythm")
	private Integer rightHandRhythm;

	/** 年龄 */
	@TableField(value = "age")
	private Integer age;
	/**
	 * 学龄 0->一年以下 1->1-2年 2->2-3年 3->3-4年 4->4-5年 5->5-6年 6->6-7年 7->7-8年 8->8-9年 9->9-10年 10-> 十年以上
	 */
	@TableField(value = "play_years")
	private String playYears;
	/** 0-入门 1-一级 。。。。。 */
	@TableField(value = "play_target")
	private String playTarget;
	/** 学生ID */
	@TableField(value = "student_id")
	private String studentId;

	public static final String COL_ID = "id";

	public static final String COL_HOMEWORK_ID = "homework_id";

	public static final String COL_INTONATION = "intonation";

	public static final String COL_RHYTHM = "rhythm";

	public static final String COL_PERFECT = "perfect";

	public static final String COL_TOTAL_SCORE = "total_score";

	public static final String COL_MUSIC_LENGTH = "music_length";

	public static final String COL_PRACTIVE_LENGTH = "practive_length";

	public static final String COL_RECORDING_SRC = "recording_src";

	public static final String COL_CREATE_TIME = "create_time";

	public static final String COL_DEL_FLAG = "del_flag";
}